/**
 * 
 */
package com.dp.struct.composite;

import java.util.Vector;

/**
 * This is to describe composite design pattern
 * 
 * 
 * The intent of this program is to compose objects into tree structures to
 * represent part-whole hierarchies. It lets client treat individual objects and
 * composition of objects uniformly.
 * 
 * @author Sunaina.Sharma
 * 
 */
public class Employee {
	private String name;
	private int salary;
	private Vector<Integer> subordinates;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the salary
	 */
	public int getSalary() {
		return salary;
	}

	/**
	 * @param salary
	 *            the salary to set
	 */
	public void setSalary(int salary) {
		this.salary = salary;
	}

	/**
	 * @return the subordinates
	 */
	public Vector<Integer> getSubordinates() {
		return subordinates;
	}

	/**
	 * @param subordinates
	 *            the subordinates to set
	 */
	public void setSubordinates(Vector<Integer> subordinates) {
		this.subordinates = subordinates;
	}

}
